package system

import (
	"MoSkeleton/framework/core/models"
	"MoSkeleton/framework/core/motypes"
)

type BlackToken struct {
	models.MoModel
	TokenStr string `gorm:"type:varchar(200);uniqueIndex"`
	//type:*int         comment:token类型;0-未知，1-jwt，2-bearea,3-oauth2
	TokenType *int `gorm:"column:token_type;type:int(5);" json:"tokenType"`
	ExpireAt  *motypes.MoTime
	CreatedBy string `gorm:"column:created_by;type:VARCHAR(32);"`
	UpdatedBy string `gorm:"column:updated_by;type:VARCHAR(32);"`
}

func (b *BlackToken) TableName() string {
	return "s_black_token"
}
